projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73fa986
)
vcs: Delete temporary directory too
author
Colin Walters
<walters@verbum.org>
Thu, 2 Feb 2012 18:56:46 +0000
(13:56 -0500)
committer
Colin Walters
<walters@verbum.org>
Thu, 2 Feb 2012 18:56:46 +0000
(13:56 -0500)
src/ostbuild/pyostbuild/vcs.py
patch
|
blob
|
history
diff --git
a/src/ostbuild/pyostbuild/vcs.py
b/src/ostbuild/pyostbuild/vcs.py
index 81b3e87e08dcc8481c084a419221d87edff7d04a..a6d2470df8c16f4b997c3cdd5987ff8117574906 100755
(executable)
--- a/
src/ostbuild/pyostbuild/vcs.py
+++ b/
src/ostbuild/pyostbuild/vcs.py
@@
-49,8
+49,10
@@
def get_vcs_checkout(mirrordir, keytype, uri, dest, branch, overwrite=True):
if not os.path.isdir(checkoutdir_parent):
os.makedirs(checkoutdir_parent)
tmp_dest = dest + '.tmp'
- if os.path.isdir(
dest) and overwrite
:
+ if os.path.isdir(
tmp_dest)
:
shutil.rmtree(tmp_dest)
+ if os.path.isdir(dest) and overwrite:
+ shutil.rmtree(dest)
if not os.path.isdir(tmp_dest):
run_sync(['git', 'clone', '-q',
'--no-checkout', module_mirror, tmp_dest])